import Vue from 'vue';
import SvgIcon from './SvgIcon.vue';
import '@/assets/icons/iconfont/iconfont';

// 注册为全局组件
Vue.component('SvgIcon', SvgIcon);
const req = require.context('@/assets/icons/svg', false, /\.svg$/);
const requireAll: any = (requireContext : any): any => {
    return requireContext.keys().map(requireContext);
};
const svga = requireAll(req);